package com.RKB.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface threeIdDao {
    @Select("select errerId from ${method} where uid=#{uid}")
    public List<Integer> findAllId(String method,String uid);

    @Insert("insert into ${method} values(null,#{uid},#{errerId},now())")
    public void insertId(String uid,String method,Integer errerId);

    @Insert("insert into ${method} values(null,#{uid},#{errerNum},#{allNum},now())")
    public void insertRate(String method,String uid,Integer errerNum,Integer allNum);
}
